<?php
$i = 6;//integer
$i = .5; //double
$i = 'ok';//string
$i = !true;//false boolean
$i = [];//array
class user {
}

$i = new user();//object
echo gettype($i) . '<br>';